package com.nuanshui.heatedloan.baseservice.dal.mapper;

import com.nuanshui.heatedloan.dal.module.Advertisement;
import com.nuanshui.heatedloan.dal.vo.AdvertisementVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;



public interface AdvertisementMapper {
	
	void save(Advertisement advertisement);
	
	AdvertisementVO loadVO(String id);
	
	List<AdvertisementVO> findByBizTypeAndBizId(@Param("biz_id") String biz_id,@Param("biz_type") Integer biz_type);

	Integer findBannerOrderNum(@Param("bizId") String bizId, @Param("bizType") Integer bizType);

	void deleteAdvertisement(@Param("bizId") String bizId, @Param("bizType") int bizType);

	void deleteById(@Param("id") String id);
}
